package com.jn.exam.webSocket;

import com.jn.exam.webSocket.component.WebSocketServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;


/**
 * @author 江南大学1033190417
 * @date 2022/3/4 19:05
 */
@SpringBootApplication
@EnableDiscoveryClient
@ComponentScan(basePackages = {"com.jn.exam"})
@EnableFeignClients
public class WebSocketApplication {
    public static void main(String[] args) {
        SpringApplication springApplication=new SpringApplication(WebSocketApplication.class);
        ConfigurableApplicationContext configurableApplicationContext=springApplication.run(args);
        WebSocketServer.setApplicationContext(configurableApplicationContext);
    }
}
